package com.csdj.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csdj.server.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZouLi
 * @since 2022-12-12
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * @Description: 根据用户id获取权限列表
     * @Param [id]
     * @Return java.util.List<com.csdj.server.pojo.Role>
     * @Throws
     **/
    List<Role> getRolesByUserId(@Param("id") Integer id);
}
